package siam.ui;

/**
 * Class which represent a gamer
 * 
 * @author Motassim Saad
 * 
 */
public class Joueur {

	/**
	 * represent the current turn
	 */
	private boolean turn;
	private String name;
	/**
	 * associate the picture with this number
	 */
	private int number;
	private static int joueurNumber = 0;

	public Joueur(String name) {
		this.name = name;
		this.number = ++joueurNumber;
		if(joueurNumber==2){
			joueurNumber=0;
		}
	}

	public String getName() {
		return name;
	}

	public void setTurn(boolean turn) {
		this.turn = turn;
	}

	public boolean getTurn() {
		return turn;
	}

	public int getNumber() {
		return this.number;
	}
}
